﻿#pragma once

#include "../../MirControls/MirImageControl.h"
#include "../../MirControls/MirLabel.h"
#include <string>
#include <any>

using namespace Client::MirControls;
using namespace Client::MirGraphics;
using namespace Client::MirSounds;

namespace Client::MirScenes::Dialogs
{
    class ChatNoticeDialog : public MirImageControl
    {
    public:
        MirImageControl *Layout;
        MirLabel *TextLabel1, *TextLabel2;
    private:
        long long ViewTime = 10000;
        long long CurrentTime = 0;

    public:
        virtual ~ChatNoticeDialog()
        {
            delete Layout;
            delete TextLabel1;
            delete TextLabel2;
        }

        ChatNoticeDialog();

    private:
        void ChatNotice_AfterDraw(std::any sender, EventArgs *e);

    public:
        void ShowNotice(const std::string &text, int type = 0);
    };
}
